package com.kg.module.jtnc.rwgl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kg.core.base.model.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 任务管理
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@TableName("kr_rwgl")
@ApiModel(value = "KrRwgl对象", description = "任务管理")
public class KrRwgl implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "rw_id", type = IdType.ASSIGN_UUID)
    private String rwId;

    @ApiModelProperty("种植计划ID")
    @TableField(value = "zzjh_id")
    private String zzjhId;

    @ApiModelProperty("任务标题")
    @TableField("rwbt")
    private String rwbt;

    @ApiModelProperty("任务内容")
    @TableField("rwnr")
    private String rwnr;

    @ApiModelProperty("注意事项")
    @TableField("zysx")
    private String zysx;

    @ApiModelProperty("地块id")
    @TableField("dkgl_id")
    private String dkglId;

    @ApiModelProperty("地块名称")
    @TableField("dkmc")
    private String dkmc;

    @ApiModelProperty("农户id")
    @TableField("nh_id")
    private String nhId;

    @ApiModelProperty("农户姓名")
    @TableField("nhxm")
    private String nhxm;

    @ApiModelProperty("任务完成时限")
    @TableField("rwwcsx")
    private String rwwcsx;

    @ApiModelProperty("任务完成凭证")
    @TableField("rwwcpz")
    private String rwwcpz;

    @ApiModelProperty("任务完成文字描述")
    @TableField("rwwcwzms")
    private String rwwcwzms;

    @ApiModelProperty("任务完成时间")
    @TableField("rwwcsj")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime rwwcsj;

    @ApiModelProperty("任务状态（0待领取1待完成2已完成）")
    @TableField("rwzt")
    private String rwzt;

    @ApiModelProperty("分数")
    @TableField("fs")
    private String fs;

    @ApiModelProperty("打分评语")
    @TableField("dfpy")
    private String dfpy;

    @ApiModelProperty("打分状态（0待打分1已打分）")
    @TableField("dfzt")
    private String dfzt;

    @ApiModelProperty("添加时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("技术员id")
    @TableField("jsy_id")
    private String jsyId;

    @ApiModelProperty("技术员姓名")
    @TableField("jsyxm")
    private String jsyxm;
}
